package com.ruoyi.tester.executor.expression;

import com.ruoyi.tester.executor.ExpressionContext;

import javax.annotation.PostConstruct;

public interface ExpressionAnalysis {
    String getExpressionName();

    String getDescription();

    Object analysis(ExpressionContext context, String... param);

    @PostConstruct
    default void init(){
        ExpressionContainer.registerExpression(getExpressionName(), this);
    }
}
